<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>Insert title here</title>
</head>
<body>
	<div class="content-wrapper" th:fragment="updateMetadata">
	<h3>编辑元数据</h3>
	<input type="hidden" id="metadataId" name="metadataId" th:value="${metadataId}"/>
		<div class="panel panel-default">
			<div class="panel-heading"></div>
			<div class="panel-body">
				<form class="form-horizontal" id="addMetadataForm">
				
					<fieldset>
						<div class="form-group">
							<label for="input-id-1" class="col-sm-2 control-label">*显示名称:</label>
							<div class="col-sm-4">
								<input type="text" name="metadataName" id="metadataName" required="" minlength="1" class="form-control" />
							</div>
						</div>
					</fieldset>
					<fieldset>
						<div class="form-group">
							<label for="input-id-1" class="col-sm-2 control-label">类型:</label>
							<div class="col-sm-4">

                                <p class="form-control-static" id="metadataType" name="metadataType"></p>
							</div>
							  
						</div>
					</fieldset>
					<fieldset>
						<div class="form-group">
							<label class="col-sm-2 control-label">输入方式:</label>
							<div class="col-sm-10">
                                 <p class="form-control-static" id="importMode" name="importMode"></p>
                           </div>
                            <input type="hidden" name="importModeStatus"  id="importModeStatus"/>
						</div>
					</fieldset>
					<fieldset id="selectData" style="display:none;">
						<div class="form-group">
							<label for="input-id-1" class="col-sm-2 control-label">*下拉框的值:</label>
							<div class="col-lg-4">
							<input type="text" name="" id="selectValue"  class="form-control" />
                                    <select id="option" multiple="" class="form-control" >
                                     
                                    </select>
                                     <label id="option-error" class="error" ></label>
                             </div>
                             <input type="hidden" name="selectData"  id="optionValue" />
							<div class="col-sm-2">
								<button type="button" id="addSelectData" class="btn btn-default" ><em class="fa fa-plus"></em></button>
								<button type="button" id="deleteSelectData" class="btn btn-default" ><em class="fa fa-minus"></em></button>
							</div>
						</div>
					</fieldset>
					<fieldset>
						<div class="form-group">
							<label for="input-id-1" class="col-sm-2 control-label">*排序:</label>
							<div class="col-sm-4">
								<input type="text" name="metaSort" id="metaSort" required="" minlength="1" digits="true" class="form-control" />							   
							</div>
						</div>
					</fieldset>
					<fieldset>
						<div class="form-group">
							<label for="input-id-1" class="col-sm-2 control-label">说明:</label>
							<div class="col-sm-4">
								<textarea id="metadataNote" name="metadataNote" class="form-control" rows="1" ></textarea>
							</div>
						</div>
					</fieldset>
					<fieldset>
						<div class="form-group">
							<label for="input-id-1" class="col-sm-2 control-label"></label>
							<div class="col-sm-4 " style="text-align: right;">
							   <button type="button" id="returnBtn" class="btn btn-default">返回</button>
								<button type="button" id="submitBtn" class="btn btn-primary">保存</button>
							</div>
						</div>
					</fieldset>

				</form>
			</div>
		</div>
		
	</div>

	<div th:fragment="updateMetadata_js">
		
		 <script th:src="@{/business/manager/metadata/updateMetadata.js}"></script> 
		
	</div>

</body>
</html>